home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_html2ps.idb / usr / freeware / catman / u_man / cat1 / html2ps.Z / html2ps
Encoding:
Text File  |  1999-01-26  |  16.5 KB  |  397 lines

  1.  
  2.  
  3.  
  4.      hhhhttttmmmmllll2222ppppssss((((1111))))        AAAAuuuuttttooooggggeeeennnneeeerrrraaaatttteeeedddd ((((9999 AAAAuuuugggg 1111999999997777))))        hhhhttttmmmmllll2222ppppssss((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       html2ps - convert HTML to PostScript
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       hhhhttttmmmmllll2222ppppssss [ ----2222ccccddddDDDDFFFFgggghhhhHHHHLLLLnnnnOOOORRRRTTTTuuuuUUUUvvvv ]    [ ----bbbb _U_R_L ] [ ----CCCC    _s_t_r_i_n_g ] [ ----eeee
  13.       _e_n_c_o_d_i_n_g ] [ ----ffff _f_i_l_e[:_f_i_l_e[:...]]  ] [ ----iiii _n_u_m    ] [ ----llll _l_a_n_g ]
  14.       [ ----mmmm _n_u_m ] [ ----NNNN _n_u_m ]    [ ----oooo _f_i_l_e ] [ ----rrrr _p_a_t_h ]    [ ----ssss _n_u_m ] [
  15.       ----SSSS _s_t_r_i_n_g ] [    ----WWWW _s_t_r_i_n_g ] [ ----xxxx _n_u_m ] [ _U_R_L|_f_i_l_e ]
  16.  
  17.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.       The program hhhhttttmmmmllll2222ppppssss converts HTML to PostScript. The HTML
  19.       code can be retrieved    from one or more URL:s or local    files,
  20.       specified as parameters on the command line.    If no
  21.       parameter is given, html2ps reads from standard input.
  22.  
  23.       Note:    To avoid unnecessary network traffic, one can rebuild
  24.       an already generated PostScript file with new    options. This
  25.       is done by running html2ps with the new options, and with
  26.       the old PostScript file as input (not    applicable for all
  27.       options).
  28.  
  29.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  30.       All options have a short (case sensitive), and a long    (case
  31.       insensitive) form.
  32.  
  33.       ----2222 --------ttttwwwwoooouuuupppp
  34.            Two column (2-up) output. The default is    one column per
  35.            page.
  36.  
  37.       ----bbbb _U_R_L --------bbbbaaaasssseeee    _U_R_L
  38.            Use _U_R_L as a base to expand relative references for
  39.            in-line images. This is useful if you have downloaded a
  40.            document    to a local file.  The _U_R_L should then be the
  41.            _U_R_L of the original document.
  42.  
  43.       ----cccc --------cccchhhheeeecccckkkk
  44.            Check the syntax    of the HTML file (using    an external
  45.            syntax checker).    The default is to not make a syntax
  46.            check.
  47.  
  48.       ----CCCC _s_t_r_i_n_g --------ttttoooocccc _s_t_r_i_n_g
  49.            Generate    a table    of contents (ToC). The value should be
  50.            a string    consisting of one of the letters 'f', 'h', or
  51.            't', optionally combined    with the letter    'b':
  52.  
  53.            bbbb    The    ToC will be printed first. This    requires that
  54.             Ghostscript    is installed.
  55.            ffff    The    ToC will be generated from the links in    the
  56.             converted document.
  57.            hhhh    The    ToC will be generated from headings and    titles
  58.             in the converted documents.    Note that if the
  59.             document author for    some strange reason has    chosen
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 12/10/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      hhhhttttmmmmllll2222ppppssss((((1111))))        AAAAuuuuttttooooggggeeeennnneeeerrrraaaatttteeeedddd ((((9999 AAAAuuuugggg 1111999999997777))))        hhhhttttmmmmllll2222ppppssss((((1111))))
  71.  
  72.  
  73.  
  74.             to use some    other means to represent the headings
  75.             than the HTML elements H1,...,H6, you are out of
  76.             luck!
  77.            tttt    The    ToC will be generated from links having    the
  78.             attribute rev=TOC in the converted document.
  79.  
  80.       ----dddd --------ddddeeeebbbbuuuugggg
  81.            Generate    debugging information. You should always use
  82.            this option when    reporting problems with    html2ps.
  83.  
  84.       ----DDDD --------DDDDSSSSCCCC
  85.            Generate    DSC compliant PostScript. This requires
  86.            Ghostscript and can take    quite some time    to do. Note
  87.            that a PostScript file generated    with this option
  88.            cannot be used as input to html2ps for reformatting
  89.            later.
  90.  
  91.       ----eeee _e_n_c_o_d_i_n_g --------eeeennnnccccooooddddiiiinnnngggg _e_n_c_o_d_i_n_g
  92.            The document encoding. Currently    recognized values are
  93.            ISO-8859-1, EUC-JP, SHIFT-JIS, and ISO-2022-JP (other
  94.            EUC-xx encodings    may also work).    The default is ISO-
  95.            8859-1.
  96.  
  97.       ----ffff _f_i_l_e[:_f_i_l_e[:...]] --------rrrrccccffffiiiilllleeee    _f_i_l_e[:_f_i_l_e[:...]]
  98.            A colon separated list of configuration file names to
  99.            use instead of the default personal configuration file
  100.            $HOME/.html2psrc.  Definitions made in one file
  101.            override    definitions in previous    files (the last    file
  102.            in the list has highest precedence). An empty file name
  103.            (as in ':file', 'file1::file3', or 'file:') will    expand
  104.            to the default personal file. The environment variable
  105.            HTML2PSPATH is used to specify the directories where to
  106.            search for these    files. (Note:  this is only supposed
  107.            to be used on the command line, not in a    configuration
  108.            file.)
  109.  
  110.       ----FFFF --------ffffrrrraaaammmmeeee
  111.            Draw a frame around the text on each page. The default
  112.            is to not draw a    frame.
  113.  
  114.       ----gggg --------ggggrrrraaaayyyyssssccccaaaalllleeee
  115.            Convert colour images to    grayscale images. Note that
  116.            the PostScript file will    be smaller when    the images are
  117.            converted to grayscale. The default is to generate
  118.            colour images.
  119.  
  120.       ----hhhh --------hhhheeeellllpppp
  121.            Show usage information.
  122.  
  123.       ----HHHH --------hhhhyyyypppphhhheeeennnnaaaatttteeee
  124.            Hyphenate the text. This    requires TeX hyphenation
  125.            pattern files.
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 12/10/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      hhhhttttmmmmllll2222ppppssss((((1111))))        AAAAuuuuttttooooggggeeeennnneeeerrrraaaatttteeeedddd ((((9999 AAAAuuuugggg 1111999999997777))))        hhhhttttmmmmllll2222ppppssss((((1111))))
  137.  
  138.  
  139.  
  140.       ----iiii _n_u_m --------ssssccccaaaalllleeeeiiiimmmmaaaaggggeeee _n_u_m
  141.            Scale in-line images with a factor _n_u_m The default is
  142.            1.
  143.  
  144.       ----llll _l_a_n_g --------llllaaaannnngggguuuuaaaaggggeeee _l_a_n_g
  145.            Specifies the language of the document (overrides an
  146.            eventual    LANG attribute of the BODY element).  The
  147.            language    should be given    according to RFC1766
  148.            (ftp://ftp.nordu.net/rfc/rfc1766.txt) and ISO 639
  149.            (http://www.sil.org/sgml/iso639a.html).
  150.  
  151.       ----LLLL --------llllaaaannnnddddssssccccaaaappppeeee
  152.            Generate    code for printing in landscape mode. The
  153.            default is portrait mode.
  154.  
  155.       ----mmmm _n_u_m --------ssssccccaaaalllleeeemmmmaaaatttthhhh _n_u_m
  156.            Scale mathematical formulas with    a factor _n_u_m The
  157.            default is 1.
  158.  
  159.       ----nnnn --------nnnnuuuummmmbbbbeeeerrrr
  160.            Insert page numbers. The    default    is to not number the
  161.            pages.
  162.  
  163.       ----NNNN _n_u_m --------ssssttttaaaarrrrttttnnnnoooo _n_u_m
  164.            Specifies the starting page number, the default is 1.
  165.  
  166.       ----oooo _f_i_l_e --------oooouuuuttttppppuuuutttt _f_i_l_e
  167.            Write the PostScript code to _f_i_l_e. The default is to
  168.            write to    standard output.
  169.  
  170.       ----OOOO --------oooorrrriiiiggggiiiinnnnaaaallll
  171.            Use PostScript original images if they exist. For
  172.            example,    if a document contains an image    figure.gif,
  173.            and an encapsulated PostScript file named figure.ps
  174.            exists in the same directory, that file will be use
  175.            instead.    This only work for documents read as local
  176.            files. Note:  if    the PostScript file is large or
  177.            contains    bitmap images, this must be combined with the
  178.            -D option. In HTML 4.0 this can be achieved in a    much
  179.            better way with:
  180.  
  181.            <OBJECT data="figure.ps"    type="application/postscript">
  182.            <OBJECT data="figure.gif" type="image/gif">
  183.            <PRE>[Maybe some    ASCII art for text browsers]</PRE>
  184.            </OBJECT>
  185.            </OBJECT>
  186.  
  187.       ----rrrr _p_a_t_h --------rrrroooooooottttddddiiiirrrr _p_a_t_h
  188.            When a document is read from a local file, this value
  189.            specifies a base    directory for resolving    relative links
  190.            starting    with "/".  Typically, this should be the
  191.            directory where your web    server's home page resides.
  192.  
  193.  
  194.  
  195.      Page 3                        (printed 12/10/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      hhhhttttmmmmllll2222ppppssss((((1111))))        AAAAuuuuttttooooggggeeeennnneeeerrrraaaatttteeeedddd ((((9999 AAAAuuuugggg 1111999999997777))))        hhhhttttmmmmllll2222ppppssss((((1111))))
  203.  
  204.  
  205.  
  206.       ----RRRR --------xxxxrrrreeeeffff
  207.            Insert cross references at every    link to    within the set
  208.            of converted documents.
  209.  
  210.       ----ssss _n_u_m --------ssssccccaaaalllleeeeddddoooocccc _n_u_m
  211.            Scale the entire    document with a    factor _n_u_m The default
  212.            is 1.
  213.  
  214.       ----SSSS _s_t_r_i_n_g --------ssssttttyyyylllleeee _s_t_r_i_n_g
  215.            This option complements/overrides definitions made in
  216.            the configuration files.    The _s_t_r_i_n_g must    follow the
  217.            configuration file syntax. (Note: this is only supposed
  218.            to be used on the command line, not in a    configuration
  219.            file.)
  220.  
  221.       ----TTTT --------tttteeeexxxxtttt
  222.            Text mode, ignore images. The default is    to include the
  223.            images.
  224.  
  225.       ----uuuu --------uuuunnnnddddeeeerrrrlllliiiinnnneeee
  226.            Underline text that constitutes a hypertext link. The
  227.            default is to not underline.
  228.  
  229.       ----UUUU --------ccccoooolllloooouuuurrrr
  230.            Produce colour output for text and background, when
  231.            specified.  The default is black    text on    white
  232.            background (mnemonic: coloUr ;-).
  233.  
  234.       ----vvvv --------vvvveeeerrrrssssiiiioooonnnn
  235.            Print information about the current version of html2ps.
  236.  
  237.       ----WWWW _s_t_r_i_n_g --------wwwweeeebbbb _s_t_r_i_n_g
  238.            Process a web of    documents by recursively retrieve and
  239.            convert documents that are referenced with hyperlinks.
  240.            When dealing with remote    documents it will of course be
  241.            necessary to impose restrictions, to avoid downloading
  242.            the entire web... The value should be a string
  243.            consisting of one of the    letters    'a', 'b', 'l', 'r', or
  244.            's', optionally combined    with a combination of the
  245.            letters 'p', 'L', and a positive    integer:
  246.  
  247.            aaaa    Follow all links.
  248.            bbbb    Follow only    links to within    the same directory, or
  249.             below, as the start    document.
  250.            llll    Follow only    links specified    with "<LINK rel=NEXT>"
  251.             in the document.
  252.            pppp    Prompt for each remote document. This mode will
  253.             automatically be entered after the first 50
  254.             documents.
  255.            rrrr    Follow only    relative links.
  256.            ssss    Follow only    links to within    the same server    as the
  257.             start document.
  258.  
  259.  
  260.  
  261.      Page 4                        (printed 12/10/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      hhhhttttmmmmllll2222ppppssss((((1111))))        AAAAuuuuttttooooggggeeeennnneeeerrrraaaatttteeeedddd ((((9999 AAAAuuuugggg 1111999999997777))))        hhhhttttmmmmllll2222ppppssss((((1111))))
  269.  
  270.  
  271.  
  272.            LLLL    With this option, the order    in which the documents
  273.             are    processed will be: first all top level
  274.             documents, then the    documents linked to from these
  275.             etc. For example, if the document A    has links to B
  276.             and    C, and B has a link to D, the order will be
  277.             A-B-C-D.  By default, each document    will be
  278.             followed by    the first document it links to etc; so
  279.             the    default    order for the example is A-B-D-C.
  280.            ####    A positive integer giving the number of recursive
  281.             levels. The    default    is 4 (when the option is
  282.             present).
  283.  
  284.       ----xxxx _n_u_m --------dddduuuupppplllleeeexxxx _n_u_m
  285.            Generate    postscript code    for single or double sided
  286.            printing.  No default, valid values are:
  287.  
  288.            0000    Single sided.
  289.            1111    Double sided.
  290.            2222    Double sided, opposite page    reversed (tumble
  291.             mode).
  292.  
  293.      BBBBUUUUGGGGSSSS
  294.       The following    bugs are with respect to HTML 3.2 - at the
  295.       time of writing the current W3C Recommendation for HTML. The
  296.       support for HTML 4.0 is described in another section of this
  297.       document.
  298.  
  299.       The IMG attributes ALIGN=LEFT    and ALIGN=RIGHT    are not
  300.       recognized.  This means that text flow around    images does
  301.       not work. Also, the IMG attributes WIDTH and HEIGHT are
  302.       ignored.
  303.  
  304.       The TYPE attribute in    unordered lists    UL is not supported.
  305.  
  306.       A few    deviations from    the TABLE element as specified in HTML
  307.       3.2:    It is not possible to set the border width of a    table.
  308.       The WIDTH and    HEIGHT attributes of the TH and    TD elements
  309.       does not work    correctly (in my opinion, these    attributes are
  310.       bugs in the HTML specification itself!). The CELLSPACING
  311.       attribute is not implemented as described in the
  312.       specification; instead the value of the CELLPADDING
  313.       attribute is increased by half the value of CELLSPACING.
  314.  
  315.       Rendering HTML tables    well is    a non-trivial task. For    "real"
  316.       tables, that is representation of tabular data, html2ps
  317.       usually generates reasonably good output. When tables    are
  318.       used for layout purposes, the    result varies from good    to
  319.       useless. This    is because a table cell    is never broken    across
  320.       pages. So if a table contains    a cell with a lot of content,
  321.       the entire table may have to be scaled down in size in order
  322.       to make this cell fit    on a single page. Sometimes this may
  323.       even result in unreadable output.
  324.  
  325.  
  326.  
  327.      Page 5                        (printed 12/10/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      hhhhttttmmmmllll2222ppppssss((((1111))))        AAAAuuuuttttooooggggeeeennnneeeerrrraaaatttteeeedddd ((((9999 AAAAuuuugggg 1111999999997777))))        hhhhttttmmmmllll2222ppppssss((((1111))))
  335.  
  336.  
  337.  
  338.       Page breaks are occasionally done in bad places: for example
  339.       directly after a (long) heading, and before the last line in
  340.       a paragraph.
  341.  
  342.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  343.       HTML2PSPATH
  344.            This variable specifies the directories to search for
  345.            configuration files. It should be a colon separated
  346.            list of directory names.    Use a dot '.' to denote    the
  347.            current directory. An empty directory name (as in
  348.            ':dir', 'dir1::dir3', or    'dir:')    will expand to the
  349.            directory where the global configuration    file is. The
  350.            default value is    '.:', that is: search the current
  351.            directory first,    and then the global one.
  352.  
  353.  
  354.      FFFFIIIILLLLEEEESSSS
  355.       /usr/freeware/lib/html2ps/html2psrc
  356.            Global configuration file. See html2psrc(5).
  357.  
  358.       $HOME/.html2psrc
  359.            User configuration file.    See html2psrc(5).
  360.  
  361.       /usr/freeware/lib/html2ps/html2ps.html
  362.            Documentation for html2ps.
  363.  
  364.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  365.       html2psrc(5),    perl(1), setlocale(3), strftime(3), weblint(1)
  366.  
  367.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  368.       This manpage describes html2ps version 1.0 beta1.
  369.  
  370.      AAAAVVVVAAAAIIIILLLLAAAABBBBIIIILLLLIIIITTTTYYYY
  371.       http://www.tdb.uu.se/~jan/html2ps.html
  372.       ftp://ftp.tdb.uu.se/pub/WWW/html2ps/
  373.  
  374.      AAAAUUUUTTTTHHHHOOOORRRR
  375.       Jan Karrman (jan@tdb.uu.se)
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                        (printed 12/10/98)
  394.  
  395.  
  396.  
  397.